<!-- 合同编号控件 -->
<template>
  <a-space
    direction="vertical"
    style="width: 100%"
  >
    <a-input
      v-model="modelValue"
      :placeholder="props.props.placeholder"
    />
  </a-space>
</template>

<script lang="ts" setup>
import { ref, computed } from 'vue';

const props = withDefaults(
  defineProps<{
    props: { [propName: string]: any };
    name?: string;
    required?: boolean;
    oneValue: any;
    regex?: {
      [name: string]: {
        role: any;
        name: any;
      };
    };
  }>(),
  {}
);

const emit = defineEmits(['update:oneValue']);
const modelValue = computed({
  get: () => {
    return props.oneValue;
  },
  set: (val) => {
    emit('update:oneValue', val)
  }
})
</script>

<style scoped lang="less">

</style>
